package com.example.schedulecard.Databases;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import androidx.annotation.Nullable;

public class ScheduleFestDatabase extends SQLiteOpenHelper {
    public ScheduleFestDatabase(@Nullable Context context) {
        super(context, "schedule_name.db", null, 1);
    }

    @Override
    public void onCreate(SQLiteDatabase sqLiteDatabase) {
        String sql = "create table schedulefest(" +
                "schedulename varchar(30) primary key ," +
                "worksum integer default 0 )";
        sqLiteDatabase.execSQL(sql);
    }

    @Override
    public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {

    }
}
